﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Web;
using DHQGHN.DAL.Models.DanhMuc;
using DHQGHN.DAL.Models.TDT;
namespace DHQGHN.Services.TDT
{
    [ServiceContract]
    public interface IAreaDSKHHGDService
    {
        /// <summary>
        /// Datlq, get danh sach dia ban dieu tra theo ma khu vuc hanh chinh de mapping voi dieu tra vien
        /// </summary>
        /// <param name="adminCode"></param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetByAdminCode_MappingArea/{adminCode}/{areaID}")]
        IEnumerable<DAL.Models.TDT.AREA_DSKHHGD> GetByAdminCode_MappingEnum(string adminCode, string areaID);

        /// <summary>
        /// Datlq, get danh sach dia ban dieu tra theo ma khu vuc hanh chinh de mapping voi dieu tra vien
        /// </summary>
        /// <param name="adminCode"></param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetByAdminCode_NotMappingArea/{adminCode}/{areaID}")]
        IEnumerable<DAL.Models.TDT.AREA_DSKHHGD> GetByAdminCode_NotMappingEnum(string adminCode, string areaID);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetByAreaID/{areaID}")]
        IEnumerable<DAL.Models.TDT.AREA_DSKHHGD> GetByAreaID(string areaID);
    }
}